﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace SCG.SolarVengeance
{
    public partial class ExitGamePanel : BasePanel
    {
        //constructors
        public ExitGamePanel()
            : base()
        {
            InitializeComponent();
        }

        //initialize
        public override void Initialize()
        {
            if (Game.IsActiveMultiPlayer)
            {
                lblExit.Text = "Surrender";
                lblDescription.Text = "Click \"Confirm\" to Surrender and Quit this game.";
            }
            else
            {
                lblExit.Text = "Quit Game";
                lblDescription.Text = "Click \"Confirm\" to Quit this game.";
            }
            Refresh();
        }

        //quit the game
        private void btnConfirm_Click(object sender, EventArgs e)
        {
            GamePage.QuitGame();
        }
    }
}
